package lesson2;

import java.util.concurrent.BlockingQueue;

public class Consumer {

    public BlockingQueue blockingQueue;

    public Consumer(BlockingQueue blockingQueue){
        this.blockingQueue = blockingQueue;
    }

    public boolean needMoreNum(){
        if(Math.random() > 0.97){
            return false;
        }
        return true;
    }
}
